package cn.wolfcode.trip.base.domain;

import cn.wolfcode.trip.base.util.JSONUtil;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

/**
 * 保险类型
 */
@Setter
@Getter
public class Insurance extends BaseDomain {
/*    public static final int STATE_DISABLE = 0;//禁用
    public static final int STATE_NORMAL = 1;//启用*/

    // 保险类型名称
    private String name;
    // 订单量
    private int orderNum = 0;
    // 订单总额
    private BigDecimal account = new BigDecimal(0);
    /*// 状态
    private int state;*/

    // 获取json数据
    public String getJson() {
        Map<String, Object> map = new HashMap<>();
        map.put("id", id);
        map.put("name", name);
        map.put("orderNum", orderNum);
        map.put("account", account);
        return JSONUtil.toJSONString(map);
    }

}